﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SRevenueMsg extends IMessageBase
    {
        public var guildId:SEntityId;
        public var totalRevenue:int;
        public var yesterdayRevenue:int;
        public var yesterday:int;
        public var isAccount:Boolean;
        public const _type:int = 5171;
        public static var _regist:SRevenueMsg = new SRevenueMsg(true);

        public function SRevenueMsg(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SRevenueMsg();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            this.guildId.__write(param1);
            param1.writeInt(this.totalRevenue);
            param1.writeInt(this.yesterdayRevenue);
            param1.writeInt(this.yesterday);
            param1.writeBool(this.isAccount);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.guildId = new SEntityId();
            this.guildId.__read(param1);
            this.totalRevenue = param1.readInt();
            this.yesterdayRevenue = param1.readInt();
            this.yesterday = param1.readInt();
            this.isAccount = param1.readBool();
            return;
        }// end function

    }
}
